s = 'Hello World dfadfasdFSDFAdfda afdaDFSAFsf'

# s1 = s.capitalize()
s1 = s.swapcase()
print(s1)
# code = 'uFT8'
# code1 = input('请输入验证码：uFT8：')
#
# # code == code1
# print(code.upper() == code1.upper(),'可以登录')

s1 = 'hello'
# print (s1.center (15, '*'))
# print (s1.count ('a'))
# print (s1.index ('a'))
# print (s1.find ('o'))
# username = input("请输入用户名:").strip()
# password = input("请输入密码: ").strip()
# if username == 'ren' and password == '123':
#
#         print("登录成功")
#
# else:
#
#         print("登录失败")

# s2 = 'python 比较简单！！'
# print (s2.startswith ('python'))
# s3 = 'c:\\user\\test.txt'
# print (s3.endswith ('txt'))
# s4 = '123一贰零仟'
# print (s4.isnumeric ())
# s5 = '秦皇岛'
# print (s5.encode ('gb2312'))
# s6 = b'\xc7\xd8\xbb\xca\xb5\xba'
# print (s6.decode ('gbk'))

# s10 = """诗人
#  学者
# 感叹号
# 渣渣"""

s10 = 'python java css html'
lis = s10.split(' ')
print (lis)
lis = ['python', 'java', 'css', 'html']
print ('-'.join (lis))
print (s10)
